/**
 * @作者 Lucas
 * @创建时间 2020/5/18 14:06
 */
package com.lucas.springboot_restful_api.dto;

import com.lucas.springboot_restful_api.core.enumeration.LoginType;
import com.lucas.springboot_restful_api.dto.validators.PasswordEqual;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@PasswordEqual
public class UserRegisterDTO {

    @NotBlank(message = "account不允许为空")
    private String account;

    @NotNull
    private String nikeName;

    @NotNull
    private String password1;

    @NotNull
    private String password2;

    private LoginType type;
}
